﻿
using Core.Domain.Customers;
namespace Services.Authentication
{
    /// <summary>
    /// 登陆服务
    /// </summary>
    public partial interface IAuthenticationService
    {
        /// <summary>
        /// 登陆
        /// </summary>
        /// <param name="customer"></param>
        /// <param name="createPersistentCookie"></param>
        void SignIn(Customer customer, bool createPersistentCookie);

        /// <summary>
        /// 登出
        /// </summary>
        void SignOut();
        
        /// <summary>
        /// 获取登陆用户
        /// </summary>
        /// <returns></returns>
        Customer GetAuthenticatedCustomer();
    }
}
